﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GraphControl
{
    public class Vertex
    {
        private string _name;
        private bool _mark;
        private List<Edge> _edges;

        public Vertex(string name)
        {
            _mark = false;
            _name = name;
            _edges = new List<Edge>();
        }
        public override string ToString()
        {
            return Name + "\t" + Mark + Edges;
        }
        public string Name
        {
            get { return _name; }
            set { _name = value; }
        }
        public bool Mark
        {
            get { return _mark; }
            set { _mark = value; }
        }
        public List<Edge> Edges
        {
            get { return _edges; }
            set { _edges = value; }
        }
        public void AddEdge(Edge edge)
        {
            _edges.Add(edge);
        }
        public int OutOfDegree()
        {
            return 0;
        }
        public void RemoveEdge(Edge edge)
        {
            _edges.Remove(edge);
        }
    }
}
